package com.itheima.homework;

public class Homework1 {
    public static void main(String[] args) {
        //1. 键盘录入

        //2.定义父母身高
        //公式: 儿子身高: (父亲身高 + 母亲身高) * 1.08 / 2
        //女儿身高: (父亲身高*0.923 + 母亲身高) / 2

        double fatherHeight = 177;
        double motherHeight = 165;
        double sonHeight = (fatherHeight + motherHeight) * 1.08 / 2;
        double daughterHeight = (fatherHeight * 0.923 + motherHeight) /2;
        System.out.println(sonHeight);
        System.out.println(daughterHeight);
    }
}
